package com.xqboss.apps.convert.user;

import com.xqboss.apps.vo.user.SysUserWalletRecordVo;
import com.xqboss.apps.vo.user.WithdrawRecordVo;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

import java.util.List;

/**
 * @author Trent
 * @date 2023/8/22
 */
@Mapper(componentModel = "spring")
public interface WithdrawRecordConverter {
    @Mapping(source = "record.sourceId", target = "orderId")
    WithdrawRecordVo toVo(SysUserWalletRecordVo record);

    List<WithdrawRecordVo> toVoList(List<SysUserWalletRecordVo> list);
}
